END (BEGIN...END) - TechNet - Microsoft New and Enhanced Features in Transact-SQL .... Although all Transact-SQL statements are valid within a BEGIN. ... @msg varchar(255) IF (SELECT COUNT( price) FROM titles WHERE title_id LIKE ...
ELSE (IF...ELSE) (Transact-SQL) - TechNet - Microsoft 在Transact-SQL 陳述式的執行上強加條件。 ... ELSE BEGIN IF @Number < 10 PRINT 'The number is small.'; ELSE ...